<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">

	<title>Class ManaPHP\Mvc\Model</title>

	<link rel="stylesheet" href="resources/bootstrap.min.css?973e37a8502921d56bc02bb55321f45b072b6f71">
	<link rel="stylesheet" href="resources/style.css?70c1d062672daa3f906b72e4f5d03d4bc5c4174d">

</head>

<body>
	<nav id="navigation" class="navbar navbar-default navbar-fixed-top">
		<div class="container-fluid">
			<div class="navbar-header">
				<a href="index.html" class="navbar-brand">Overview</a>
			</div>
			<div class="collapse navbar-collapse">

                <form id="search" class="navbar-form navbar-left" role="search">
                    <input type="hidden" name="cx" value="">
                    <input type="hidden" name="ie" value="UTF-8">
                    <div class="form-group">
                        <input type="text" name="q" class="search-query form-control" placeholder="Search">
					</div>
				</form>

				<ul class="nav navbar-nav">
					<li>
						<a href="namespace-ManaPHP.Mvc.html" title="Summary of ManaPHP\Mvc"><span>Namespace</span></a>
					</li>
					<li class="active">
<span>Class</span>					</li>





				</ul>
			</div>
		</div>
	</nav>

	<div id="left">
	<div id="menu">

		<div id="groups">
				<h3>Namespaces</h3>
			<ul>
					<li class="active">
						<a href="namespace-ManaPHP.html">
							ManaPHP<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Alias.html">
							Alias						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Authentication.html">
							Authentication<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Authentication.Token.html">
							Token<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Authentication.Token.Adapter.html">
							Adapter<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Authentication.Token.Adapter.Mwt.html">
							Mwt						</a>
							</li>
								</ul></li></ul></li></ul></li>
					<li>
						<a href="namespace-ManaPHP.Authorization.html">
							Authorization<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Authorization.Rbac.html">
							Rbac<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Authorization.Rbac.Models.html">
							Models						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Authorization.Rbac.PermissionBuilder.html">
							PermissionBuilder						</a>
							</li>
								</ul></li></ul></li>
					<li>
						<a href="namespace-ManaPHP.Cache.html">
							Cache<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Cache.Adapter.html">
							Adapter<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Cache.Adapter.Apc.html">
							Apc						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Cache.Adapter.Db.html">
							Db						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Cache.Adapter.File.html">
							File						</a>
							</li>
								</ul></li></ul></li>
					<li>
						<a href="namespace-ManaPHP.Cli.html">
							Cli<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Cli.Application.html">
							Application						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Cli.Arguments.html">
							Arguments						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Cli.Controllers.html">
							Controllers						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-ManaPHP.Component.html">
							Component						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Configure.html">
							Configure<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Configure.Engine.html">
							Engine<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Configure.Engine.Ini.html">
							Ini						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Configure.Engine.Json.html">
							Json						</a>
							</li>
								</ul></li></ul></li>
					<li>
						<a href="namespace-ManaPHP.Counter.html">
							Counter<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Counter.Adapter.html">
							Adapter<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Counter.Adapter.Db.html">
							Db						</a>
							</li>
								</ul></li></ul></li>
					<li>
						<a href="namespace-ManaPHP.Db.html">
							Db<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Db.Adapter.html">
							Adapter<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Db.Adapter.Sqlite.html">
							Sqlite						</a>
							</li>
								</ul></li></ul></li>
					<li>
						<a href="namespace-ManaPHP.Debugger.html">
							Debugger						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Di.html">
							Di						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Event.html">
							Event<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Event.Manager.html">
							Manager						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-ManaPHP.Facade.html">
							Facade						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Filesystem.html">
							Filesystem<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Filesystem.Adapter.html">
							Adapter<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Filesystem.Adapter.File.html">
							File						</a>
							</li>
								</ul></li></ul></li>
					<li>
						<a href="namespace-ManaPHP.Http.html">
							Http<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Http.Client.html">
							Client						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Http.Cookies.html">
							Cookies						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Http.Filter.html">
							Filter						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Http.Request.html">
							Request<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Http.Request.File.html">
							File						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-ManaPHP.Http.Response.html">
							Response						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Http.Session.html">
							Session<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Http.Session.Adapter.html">
							Adapter<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Http.Session.Adapter.Db.html">
							Db						</a>
							</li>
								</ul></li></ul></li></ul></li>
					<li>
						<a href="namespace-ManaPHP.I18n.html">
							I18n						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Image.html">
							Image<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Image.Adapter.html">
							Adapter<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Image.Adapter.Gd.html">
							Gd						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Image.Adapter.Imagick.html">
							Imagick						</a>
							</li>
								</ul></li></ul></li>
					<li>
						<a href="namespace-ManaPHP.Loader.html">
							Loader						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Logger.html">
							Logger<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Logger.Adapter.html">
							Adapter<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Logger.Adapter.Db.html">
							Db						</a>
							</li>
								</ul></li></ul></li>
					<li>
						<a href="namespace-ManaPHP.Message.html">
							Message<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Message.Queue.html">
							Queue<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Message.Queue.Adapter.html">
							Adapter<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Message.Queue.Adapter.Db.html">
							Db						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Message.Queue.Adapter.Redis.html">
							Redis						</a>
							</li>
								</ul></li></ul></li></ul></li>
					<li>
						<a href="namespace-ManaPHP.Meter.html">
							Meter<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Meter.Linear.html">
							Linear						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Meter.Round.html">
							Round						</a>
							</li>
								</ul></li>
					<li class="active">
						<a href="namespace-ManaPHP.Mvc.html">
							Mvc<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Mvc.Application.html">
							Application						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Mvc.Dispatcher.html">
							Dispatcher						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Mvc.Model.html">
							Model<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Mvc.Model.Manager.html">
							Manager						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Mvc.Model.Metadata.html">
							Metadata<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Mvc.Model.Metadata.Adapter.html">
							Adapter<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Mvc.Model.Metadata.Adapter.Apc.html">
							Apc						</a>
							</li>
								</ul></li></ul></li>
					<li>
						<a href="namespace-ManaPHP.Mvc.Model.QueryBuilder.html">
							QueryBuilder						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-ManaPHP.Mvc.Router.html">
							Router<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Mvc.Router.RewriteChecker.html">
							RewriteChecker						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Mvc.Router.Route.html">
							Route						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-ManaPHP.Mvc.Url.html">
							Url						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Mvc.User.html">
							User						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Mvc.View.html">
							View<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Mvc.View.Flash.html">
							Flash<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Mvc.View.Flash.Adapter.html">
							Adapter						</a>
							</li>
								</ul></li></ul></li></ul></li>
					<li>
						<a href="namespace-ManaPHP.Paginator.html">
							Paginator						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Renderer.html">
							Renderer<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Renderer.Engine.html">
							Engine<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Renderer.Engine.Php.html">
							Php						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Renderer.Engine.Sword.html">
							Sword						</a>
							</li>
								</ul></li></ul></li>
					<li>
						<a href="namespace-ManaPHP.Security.html">
							Security<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Security.Captcha.html">
							Captcha						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Security.Crypt.html">
							Crypt						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Security.CsrfToken.html">
							CsrfToken						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Security.RateLimiter.html">
							RateLimiter<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Security.RateLimiter.Adapter.html">
							Adapter<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Security.RateLimiter.Adapter.Db.html">
							Db						</a>
							</li>
								</ul></li></ul></li></ul></li>
					<li>
						<a href="namespace-ManaPHP.Serializer.html">
							Serializer<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Serializer.Adapter.html">
							Adapter<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Serializer.Adapter.Json.html">
							Json						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Serializer.Adapter.JsonPhp.html">
							JsonPhp						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Serializer.Adapter.Php.html">
							Php						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Serializer.Adapter.StringType.html">
							StringType						</a>
							</li>
								</ul></li></ul></li>
					<li>
						<a href="namespace-ManaPHP.Store.html">
							Store<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Store.Adapter.html">
							Adapter<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Store.Adapter.Db.html">
							Db						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Store.Adapter.File.html">
							File						</a>
							</li>
								</ul></li></ul></li>
					<li>
						<a href="namespace-ManaPHP.Task.html">
							Task<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Task.Metadata.html">
							Metadata<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Task.Metadata.Adapter.html">
							Adapter<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-ManaPHP.Task.Metadata.Adapter.Apc.html">
							Apc						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Task.Metadata.Adapter.Db.html">
							Db						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Task.Metadata.Adapter.Redis.html">
							Redis						</a>
							</li>
								</ul></li></ul></li></ul></li>
					<li>
						<a href="namespace-ManaPHP.Text.html">
							Text						</a>
							</li>
					<li>
						<a href="namespace-ManaPHP.Utility.html">
							Utility						</a>
							</li>
								</ul></li>
			</ul>
		</div>


		<div id="elements">
			<h3>Classes</h3>
			<ul>
				<li><a href="class-ManaPHP.Mvc.Application.html">Application</a></li>
				<li><a href="class-ManaPHP.Mvc.Controller.html">Controller</a></li>
				<li><a href="class-ManaPHP.Mvc.Dispatcher.html">Dispatcher</a></li>
				<li class="active"><a href="class-ManaPHP.Mvc.Model.html">Model</a></li>
				<li><a href="class-ManaPHP.Mvc.Module.html">Module</a></li>
				<li><a href="class-ManaPHP.Mvc.Router.html">Router</a></li>
				<li><a href="class-ManaPHP.Mvc.Url.html">Url</a></li>
				<li><a href="class-ManaPHP.Mvc.View.html">View</a></li>
				<li><a href="class-ManaPHP.Mvc.Widget.html">Widget</a></li>
			</ul>

			<h3>Interfaces</h3>
			<ul>
				<li><a href="class-ManaPHP.Mvc.ControllerInterface.html">ControllerInterface</a></li>
				<li><a href="class-ManaPHP.Mvc.DispatcherInterface.html">DispatcherInterface</a></li>
				<li><a href="class-ManaPHP.Mvc.ModelInterface.html">ModelInterface</a></li>
				<li><a href="class-ManaPHP.Mvc.ModuleInterface.html">ModuleInterface</a></li>
				<li><a href="class-ManaPHP.Mvc.RouterInterface.html">RouterInterface</a></li>
				<li><a href="class-ManaPHP.Mvc.UrlInterface.html">UrlInterface</a></li>
				<li><a href="class-ManaPHP.Mvc.ViewInterface.html">ViewInterface</a></li>
				<li><a href="class-ManaPHP.Mvc.WidgetInterface.html">WidgetInterface</a></li>
			</ul>


			<h3>Exceptions</h3>
			<ul>
				<li><a href="class-ManaPHP.Mvc.Exception.html">Exception</a></li>
				<li><a href="class-ManaPHP.Mvc.NotFoundException.html">NotFoundException</a></li>
			</ul>


		</div>
	</div>
</div>

<div id="splitter"></div>

<div id="right">
	<div id="rightInner">
<div id="content" class="class">
	<h1>Class Model</h1>


	<div class="description">
	<p>Class ManaPHP\Mvc\Model</p>
	</div>

	<dl class="tree well">
		<dd style="padding-left:0px">
			<a href="class-ManaPHP.Component.html"><span>ManaPHP\Component</span></a>
			
			 implements 
				<a href="class-ManaPHP.ComponentInterface.html"><span>ManaPHP\ComponentInterface</span></a>
			
			
		</dd>
		<dd style="padding-left:30px">
			<img src="resources/inherit.png" alt="Extended by">
<b><span>ManaPHP\Mvc\Model</span></b>			
			 implements 
				<a href="class-ManaPHP.Mvc.ModelInterface.html"><span>ManaPHP\Mvc\ModelInterface</span></a>
			
			
		</dd>
	</dl>


	<div>
		<h3>Direct known subclasses</h3>
		<p class="elementList">
			<code><a href="class-ManaPHP.Authorization.Rbac.Models.Permission.html">ManaPHP\Authorization\Rbac\Models\Permission</a></code>, 
			<code><a href="class-ManaPHP.Authorization.Rbac.Models.Role.html">ManaPHP\Authorization\Rbac\Models\Role</a></code>, 
			<code><a href="class-ManaPHP.Meter.Round.Model.html">ManaPHP\Meter\Round\Model</a></code>, 
			<code><a href="class-ManaPHP.Security.RateLimiter.Adapter.Db.Model.html">ManaPHP\Security\RateLimiter\Adapter\Db\Model</a></code>, 
			<code><a href="class-ManaPHP.Store.Adapter.Db.Model.html">ManaPHP\Store\Adapter\Db\Model</a></code>, 
			<code><a href="class-ManaPHP.Task.Metadata.Adapter.Db.Model.html">ManaPHP\Task\Metadata\Adapter\Db\Model</a></code>, 
			<code><a href="class-ManaPHP.Authorization.Rbac.Models.RolePermission.html">ManaPHP\Authorization\Rbac\Models\RolePermission</a></code>, 
			<code><a href="class-ManaPHP.Authorization.Rbac.Models.UserRole.html">ManaPHP\Authorization\Rbac\Models\UserRole</a></code>, 
			<code><a href="class-ManaPHP.Cache.Adapter.Db.Model.html">ManaPHP\Cache\Adapter\Db\Model</a></code>, 
			<code><a href="class-ManaPHP.Counter.Adapter.Db.Model.html">ManaPHP\Counter\Adapter\Db\Model</a></code>, 
			<code><a href="class-ManaPHP.Http.Session.Adapter.Db.Model.html">ManaPHP\Http\Session\Adapter\Db\Model</a></code>, 
			<code><a href="class-ManaPHP.Logger.Adapter.Db.Model.html">ManaPHP\Logger\Adapter\Db\Model</a></code>, 
			<code><a href="class-ManaPHP.Message.Queue.Adapter.Db.Model.html">ManaPHP\Message\Queue\Adapter\Db\Model</a></code>, 
			<code><a href="class-ManaPHP.Meter.Linear.Model.html">ManaPHP\Meter\Linear\Model</a></code>
		</p>
	</div>






	<div class="alert alert-info">
		
		
		<b>Namespace:</b> <a href="namespace-ManaPHP.html">ManaPHP</a>\<a href="namespace-ManaPHP.Mvc.html">Mvc</a><br>
		<b>Package:</b> model<br>

			<b>Located at</b> <a href="source-class-ManaPHP.Mvc.Model.html#11-1064" title="Go to source code">Mvc/Model.php</a>
		<br>
	</div>



		<div class="panel panel-default">
			<div class="panel-heading"><h2>Methods summary</h2></div>
			<table class="summary table table-bordered table-striped methods" id="methods">
		<tr data-order="__construct" id="___construct">

			<td class="attributes"><code>
				final public 
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#___construct">#</a>
			<code><a href="source-class-ManaPHP.Mvc.Model.html#48-85" title="Go to source code">__construct</a>( <span>array <var>$data</var> = []</span>, <span><code><a href="class-ManaPHP.DiInterface.html">ManaPHP\DiInterface</a></code> <var>$dependencyInjector</var> = <span class="php-keyword1">null</span></span> )</code>

			<div class="description short">
				<p>\ManaPHP\Mvc\Model constructor</p>
			</div>

			<div class="description detailed hidden">
				<p>\ManaPHP\Mvc\Model constructor</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$data</var></dt>
						<dd></dd>
						<dt><var>$dependencyInjector</var></dt>
						<dd></dd>
					</dl></div>





			</div>
			</div></td>
		</tr>
		<tr data-order="setSource" id="_setSource">

			<td class="attributes"><code>
				 public 
				static
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_setSource">#</a>
			<code><a href="source-class-ManaPHP.Mvc.Model.html#87-99" title="Go to source code">setSource</a>( <span>string <var>$source</var></span> )</code>

			<div class="description short">
				<p>Sets table name which model should be mapped</p>
			</div>

			<div class="description detailed hidden">
				<p>Sets table name which model should be mapped</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$source</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						static
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="getSource" id="_getSource">

			<td class="attributes"><code>
				 public 
				string
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getSource">#</a>
			<code><a href="source-class-ManaPHP.Mvc.Model.html#101-110" title="Go to source code">getSource</a>( )</code>

			<div class="description short">
				<p>Returns table name mapped in the model</p>
			</div>

			<div class="description detailed hidden">
				<p>Returns table name mapped in the model</p>



					<h4>Returns</h4>
					<div class="list">
						string
					</div>

					<h4>Throws</h4>
					<div class="list">
						<code><a href="class-ManaPHP.Mvc.Model.Exception.html">ManaPHP\Mvc\Model\Exception</a></code>
					</div>



					<h4>Implementation of</h4>
					<div class="list"><code><a href="class-ManaPHP.Mvc.ModelInterface.html#_getSource">ManaPHP\Mvc\ModelInterface::getSource()</a></code></div>
			</div>
			</div></td>
		</tr>
		<tr data-order="setConnectionService" id="_setConnectionService">

			<td class="attributes"><code>
				 public 
				static
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_setConnectionService">#</a>
			<code><a href="source-class-ManaPHP.Mvc.Model.html#112-124" title="Go to source code">setConnectionService</a>( <span>string <var>$connectionService</var></span> )</code>

			<div class="description short">
				<p>Sets the DependencyInjection connection service name</p>
			</div>

			<div class="description detailed hidden">
				<p>Sets the DependencyInjection connection service name</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$connectionService</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						static
					</div>




					<h4>Implementation of</h4>
					<div class="list"><code><a href="class-ManaPHP.Mvc.ModelInterface.html#_setConnectionService">ManaPHP\Mvc\ModelInterface::setConnectionService()</a></code></div>
			</div>
			</div></td>
		</tr>
		<tr data-order="setReadConnectionService" id="_setReadConnectionService">

			<td class="attributes"><code>
				 public 
				static
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_setReadConnectionService">#</a>
			<code><a href="source-class-ManaPHP.Mvc.Model.html#126-138" title="Go to source code">setReadConnectionService</a>( <span>string <var>$connectionService</var></span> )</code>

			<div class="description short">
				<p>Sets the DependencyInjection connection service name used to read data</p>
			</div>

			<div class="description detailed hidden">
				<p>Sets the DependencyInjection connection service name used to read data</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$connectionService</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						static
					</div>




					<h4>Implementation of</h4>
					<div class="list"><code><a href="class-ManaPHP.Mvc.ModelInterface.html#_setReadConnectionService">ManaPHP\Mvc\ModelInterface::setReadConnectionService()</a></code></div>
			</div>
			</div></td>
		</tr>
		<tr data-order="setWriteConnectionService" id="_setWriteConnectionService">

			<td class="attributes"><code>
				 public 
				static
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_setWriteConnectionService">#</a>
			<code><a href="source-class-ManaPHP.Mvc.Model.html#140-152" title="Go to source code">setWriteConnectionService</a>( <span>string <var>$connectionService</var></span> )</code>

			<div class="description short">
				<p>Sets the DependencyInjection connection service name used to write data</p>
			</div>

			<div class="description detailed hidden">
				<p>Sets the DependencyInjection connection service name used to write data</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$connectionService</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						static
					</div>




					<h4>Implementation of</h4>
					<div class="list"><code><a href="class-ManaPHP.Mvc.ModelInterface.html#_setWriteConnectionService">ManaPHP\Mvc\ModelInterface::setWriteConnectionService()</a></code></div>
			</div>
			</div></td>
		</tr>
		<tr data-order="getReadConnectionService" id="_getReadConnectionService">

			<td class="attributes"><code>
				 public 
				string
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getReadConnectionService">#</a>
			<code><a href="source-class-ManaPHP.Mvc.Model.html#154-162" title="Go to source code">getReadConnectionService</a>( )</code>

			<div class="description short">
				<p>Returns the DependencyInjection connection service name used to read data related the model</p>
			</div>

			<div class="description detailed hidden">
				<p>Returns the DependencyInjection connection service name used to read data related the model</p>



					<h4>Returns</h4>
					<div class="list">
						string
					</div>




					<h4>Implementation of</h4>
					<div class="list"><code><a href="class-ManaPHP.Mvc.ModelInterface.html#_getReadConnectionService">ManaPHP\Mvc\ModelInterface::getReadConnectionService()</a></code></div>
			</div>
			</div></td>
		</tr>
		<tr data-order="getWriteConnectionService" id="_getWriteConnectionService">

			<td class="attributes"><code>
				 public 
				string
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getWriteConnectionService">#</a>
			<code><a href="source-class-ManaPHP.Mvc.Model.html#164-172" title="Go to source code">getWriteConnectionService</a>( )</code>

			<div class="description short">
				<p>Returns the DependencyInjection connection service name used to write data related to the model</p>
			</div>

			<div class="description detailed hidden">
				<p>Returns the DependencyInjection connection service name used to write data related to the model</p>



					<h4>Returns</h4>
					<div class="list">
						string
					</div>




					<h4>Implementation of</h4>
					<div class="list"><code><a href="class-ManaPHP.Mvc.ModelInterface.html#_getWriteConnectionService">ManaPHP\Mvc\ModelInterface::getWriteConnectionService()</a></code></div>
			</div>
			</div></td>
		</tr>
		<tr data-order="getReadConnection" id="_getReadConnection">

			<td class="attributes"><code>
				 public 
				<code><a href="class-ManaPHP.DbInterface.html">ManaPHP\DbInterface</a></code>
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getReadConnection">#</a>
			<code><a href="source-class-ManaPHP.Mvc.Model.html#174-182" title="Go to source code">getReadConnection</a>( )</code>

			<div class="description short">
				<p>Gets the connection used to read data for the model</p>
			</div>

			<div class="description detailed hidden">
				<p>Gets the connection used to read data for the model</p>



					<h4>Returns</h4>
					<div class="list">
						<code><a href="class-ManaPHP.DbInterface.html">ManaPHP\DbInterface</a></code>
					</div>




					<h4>Implementation of</h4>
					<div class="list"><code><a href="class-ManaPHP.Mvc.ModelInterface.html#_getReadConnection">ManaPHP\Mvc\ModelInterface::getReadConnection()</a></code></div>
			</div>
			</div></td>
		</tr>
		<tr data-order="getWriteConnection" id="_getWriteConnection">

			<td class="attributes"><code>
				 public 
				<code><a href="class-ManaPHP.DbInterface.html">ManaPHP\DbInterface</a></code>
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getWriteConnection">#</a>
			<code><a href="source-class-ManaPHP.Mvc.Model.html#184-192" title="Go to source code">getWriteConnection</a>( )</code>

			<div class="description short">
				<p>Gets the connection used to write data to the model</p>
			</div>

			<div class="description detailed hidden">
				<p>Gets the connection used to write data to the model</p>



					<h4>Returns</h4>
					<div class="list">
						<code><a href="class-ManaPHP.DbInterface.html">ManaPHP\DbInterface</a></code>
					</div>




					<h4>Implementation of</h4>
					<div class="list"><code><a href="class-ManaPHP.Mvc.ModelInterface.html#_getWriteConnection">ManaPHP\Mvc\ModelInterface::getWriteConnection()</a></code></div>
			</div>
			</div></td>
		</tr>
		<tr data-order="assign" id="_assign">

			<td class="attributes"><code>
				 public 
				static
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_assign">#</a>
			<code><a href="source-class-ManaPHP.Mvc.Model.html#194-226" title="Go to source code">assign</a>( <span>array <var>$data</var></span>, <span>array <var>$whiteList</var> = <span class="php-keyword1">null</span></span> )</code>

			<div class="description short">
				<p>Assigns values to a model from an array</p>
			</div>

			<div class="description detailed hidden">
				<p>Assigns values to a model from an array</p>

<pre><span class="php-var">$robot</span>-&gt;assign(<span class="php-keyword1">array</span>(
 <span class="php-quote">'type'</span> =&gt; <span class="php-quote">'mechanical'</span>,
 <span class="php-quote">'name'</span> =&gt; <span class="php-quote">'Boy'</span>,
 <span class="php-quote">'year'</span> =&gt; <span class="php-num">1952</span>
));</pre>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$data</var></dt>
						<dd></dd>
						<dt><var>$whiteList</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						static
					</div>

					<h4>Throws</h4>
					<div class="list">
						<code><a href="class-ManaPHP.Mvc.Model.Exception.html">ManaPHP\Mvc\Model\Exception</a></code>
					</div>



					<h4>Implementation of</h4>
					<div class="list"><code><a href="class-ManaPHP.Mvc.ModelInterface.html#_assign">ManaPHP\Mvc\ModelInterface::assign()</a></code></div>
			</div>
			</div></td>
		</tr>
		<tr data-order="find" id="_find">

			<td class="attributes"><code>
				 public static
				static[]
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_find">#</a>
			<code><a href="source-class-ManaPHP.Mvc.Model.html#228-294" title="Go to source code">find</a>( <span>string|array <var>$parameters</var> = <span class="php-keyword1">null</span></span>, <span>integer|array <var>$cacheOptions</var> = <span class="php-keyword1">null</span></span> )</code>

			<div class="description short">
				<p>Allows to query a set of records that match the specified conditions</p>
			</div>

			<div class="description detailed hidden">
				<p>Allows to query a set of records that match the specified conditions</p>

<pre><span class="php-comment">//How many robots are there?</span>
<span class="php-var">$robots</span> = Robots::find();
<span class="php-keyword1">echo</span> <span class="php-quote">&quot;There are &quot;</span>, <span class="php-keyword2">count</span>(<span class="php-var">$robots</span>), <span class="php-quote">&quot;\n&quot;</span>;

<span class="php-comment">//How many mechanical robots are there?</span>
<span class="php-var">$robots</span> = Robots::find(<span class="php-quote">&quot;type='mechanical'&quot;</span>);
<span class="php-keyword1">echo</span> <span class="php-quote">&quot;There are &quot;</span>, <span class="php-keyword2">count</span>(<span class="php-var">$robots</span>), <span class="php-quote">&quot;\n&quot;</span>;

<span class="php-comment">//Get and print virtual robots ordered by name</span>
<span class="php-var">$robots</span> = Robots::find(<span class="php-keyword1">array</span>(<span class="php-quote">&quot;type='virtual'&quot;</span>, <span class="php-quote">&quot;order&quot;</span> =&gt; <span class="php-quote">&quot;name&quot;</span>));
<span class="php-keyword1">foreach</span> (<span class="php-var">$robots</span> <span class="php-keyword1">as</span> <span class="php-var">$robot</span>) {
      <span class="php-keyword1">echo</span> <span class="php-var">$robot</span>-&gt;name, <span class="php-quote">&quot;\n&quot;</span>;
}

<span class="php-comment">//Get first 100 virtual robots ordered by name</span>
<span class="php-var">$robots</span> = Robots::find(<span class="php-keyword1">array</span>(<span class="php-quote">&quot;type='virtual'&quot;</span>, <span class="php-quote">&quot;order&quot;</span> =&gt; <span class="php-quote">&quot;name&quot;</span>, <span class="php-quote">&quot;limit&quot;</span> =&gt; <span class="php-num">100</span>));
<span class="php-keyword1">foreach</span> (<span class="php-var">$robots</span> <span class="php-keyword1">as</span> <span class="php-var">$robot</span>) {
      <span class="php-keyword1">echo</span> <span class="php-var">$robot</span>-&gt;name, <span class="php-quote">&quot;\n&quot;</span>;
}</pre>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$parameters</var></dt>
						<dd></dd>
						<dt><var>$cacheOptions</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						static[]
					</div>

					<h4>Throws</h4>
					<div class="list">
						<code><a href="class-ManaPHP.Mvc.Model.Exception.html">ManaPHP\Mvc\Model\Exception</a></code>
					</div>



					<h4>Implementation of</h4>
					<div class="list"><code><a href="class-ManaPHP.Mvc.ModelInterface.html#_find">ManaPHP\Mvc\ModelInterface::find()</a></code></div>
			</div>
			</div></td>
		</tr>
		<tr data-order="findAll" id="_findAll">

			<td class="attributes"><code>
				final public static
				static[]
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_findAll">#</a>
			<code><a href="source-class-ManaPHP.Mvc.Model.html#296-308" title="Go to source code">findAll</a>( <span>string|array <var>$parameters</var> = <span class="php-keyword1">null</span></span>, <span>integer|array <var>$cacheOptions</var> = <span class="php-keyword1">null</span></span> )</code>

			<div class="description short">
				<p>alias of find</p>
			</div>

			<div class="description detailed hidden">
				<p>alias of find</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$parameters</var></dt>
						<dd></dd>
						<dt><var>$cacheOptions</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						static[]
					</div>

					<h4>Throws</h4>
					<div class="list">
						<code><a href="class-ManaPHP.Mvc.Model.Exception.html">ManaPHP\Mvc\Model\Exception</a></code>
					</div>



					<h4>Implementation of</h4>
					<div class="list"><code><a href="class-ManaPHP.Mvc.ModelInterface.html#_findAll">ManaPHP\Mvc\ModelInterface::findAll()</a></code></div>
			</div>
			</div></td>
		</tr>
		<tr data-order="findFirst" id="_findFirst">

			<td class="attributes"><code>
				 public static
				static|false
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_findFirst">#</a>
			<code><a href="source-class-ManaPHP.Mvc.Model.html#310-380" title="Go to source code">findFirst</a>( <span>string|array <var>$parameters</var> = <span class="php-keyword1">null</span></span>, <span>integer|array <var>$cacheOptions</var> = <span class="php-keyword1">null</span></span> )</code>

			<div class="description short">
				<p>Allows to query the first record that match the specified conditions</p>
			</div>

			<div class="description detailed hidden">
				<p>Allows to query the first record that match the specified conditions</p>

<pre><span class="php-comment">//What's the first robot in robots table?</span>
<span class="php-var">$robot</span> = Robots::findFirst();
<span class="php-keyword1">echo</span> <span class="php-quote">&quot;The robot name is &quot;</span>, <span class="php-var">$robot</span>-&gt;name;

<span class="php-comment">//What's the first mechanical robot in robots table?</span>
<span class="php-var">$robot</span> = Robots::findFirst(<span class="php-quote">&quot;type='mechanical'&quot;</span>);
<span class="php-keyword1">echo</span> <span class="php-quote">&quot;The first mechanical robot name is &quot;</span>, <span class="php-var">$robot</span>-&gt;name;

<span class="php-comment">//Get first virtual robot ordered by name</span>
<span class="php-var">$robot</span> = Robots::findFirst(<span class="php-keyword1">array</span>(<span class="php-quote">&quot;type='virtual'&quot;</span>, <span class="php-quote">&quot;order&quot;</span> =&gt; <span class="php-quote">&quot;name&quot;</span>));
<span class="php-keyword1">echo</span> <span class="php-quote">&quot;The first virtual robot name is &quot;</span>, <span class="php-var">$robot</span>-&gt;name;</pre>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$parameters</var></dt>
						<dd></dd>
						<dt><var>$cacheOptions</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						static|false
					</div>

					<h4>Throws</h4>
					<div class="list">
						<code><a href="class-ManaPHP.Mvc.Model.Exception.html">ManaPHP\Mvc\Model\Exception</a></code>
					</div>



					<h4>Implementation of</h4>
					<div class="list"><code><a href="class-ManaPHP.Mvc.ModelInterface.html#_findFirst">ManaPHP\Mvc\ModelInterface::findFirst()</a></code></div>
			</div>
			</div></td>
		</tr>
		<tr data-order="exists" id="_exists">

			<td class="attributes"><code>
				 public static
				boolean
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_exists">#</a>
			<code><a href="source-class-ManaPHP.Mvc.Model.html#382-421" title="Go to source code">exists</a>( <span>string|array <var>$parameters</var> = <span class="php-keyword1">null</span></span>, <span>integer|array <var>$cacheOptions</var> = <span class="php-keyword1">null</span></span> )</code>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$parameters</var></dt>
						<dd></dd>
						<dt><var>$cacheOptions</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						boolean
					</div>

					<h4>Throws</h4>
					<div class="list">
						<code><a href="class-ManaPHP.Mvc.Model.Exception.html">ManaPHP\Mvc\Model\Exception</a></code>
					</div>



					<h4>Implementation of</h4>
					<div class="list"><code><a href="class-ManaPHP.Mvc.ModelInterface.html#_exists">ManaPHP\Mvc\ModelInterface::exists()</a></code></div>
			</div>
			</div></td>
		</tr>
		<tr data-order="query" id="_query">

			<td class="attributes"><code>
				 public static
				<code><a href="class-ManaPHP.Mvc.Model.QueryBuilderInterface.html">ManaPHP\Mvc\Model\QueryBuilderInterface</a></code>
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_query">#</a>
			<code><a href="source-class-ManaPHP.Mvc.Model.html#423-435" title="Go to source code">query</a>( <span><code><a href="class-ManaPHP.DiInterface.html">ManaPHP\DiInterface</a></code> <var>$dependencyInjector</var> = <span class="php-keyword1">null</span></span> )</code>

			<div class="description short">
				<p>Create a criteria for a specific model</p>
			</div>

			<div class="description detailed hidden">
				<p>Create a criteria for a specific model</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$dependencyInjector</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						<code><a href="class-ManaPHP.Mvc.Model.QueryBuilderInterface.html">ManaPHP\Mvc\Model\QueryBuilderInterface</a></code>
					</div>




					<h4>Implementation of</h4>
					<div class="list"><code><a href="class-ManaPHP.Mvc.ModelInterface.html#_query">ManaPHP\Mvc\ModelInterface::query()</a></code></div>
			</div>
			</div></td>
		</tr>
		<tr data-order="_exists" id="__exists">

			<td class="attributes"><code>
				 protected 
				boolean
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#__exists">#</a>
			<code><a href="source-class-ManaPHP.Mvc.Model.html#437-482" title="Go to source code">_exists</a>( )</code>

			<div class="description short">
				<p>Checks if the current record already exists or not</p>
			</div>

			<div class="description detailed hidden">
				<p>Checks if the current record already exists or not</p>



					<h4>Returns</h4>
					<div class="list">
						boolean
					</div>

					<h4>Throws</h4>
					<div class="list">
						<code><a href="class-ManaPHP.Mvc.Model.Exception.html">ManaPHP\Mvc\Model\Exception</a></code>
					</div>



			</div>
			</div></td>
		</tr>
		<tr data-order="_groupResult" id="__groupResult">

			<td class="attributes"><code>
				 protected static
				mixed
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#__groupResult">#</a>
			<code><a href="source-class-ManaPHP.Mvc.Model.html#484-529" title="Go to source code">_groupResult</a>( <span>string <var>$function</var></span>, <span>string <var>$alias</var></span>, <span>string <var>$column</var></span>, <span>string|array <var>$parameters</var></span>, <span>integer|array <var>$cacheOptions</var></span> )</code>

			<div class="description short">
				<p>Generate a SQL SELECT statement for an aggregate</p>
			</div>

			<div class="description detailed hidden">
				<p>Generate a SQL SELECT statement for an aggregate</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$function</var></dt>
						<dd></dd>
						<dt><var>$alias</var></dt>
						<dd></dd>
						<dt><var>$column</var></dt>
						<dd></dd>
						<dt><var>$parameters</var></dt>
						<dd></dd>
						<dt><var>$cacheOptions</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						mixed
					</div>

					<h4>Throws</h4>
					<div class="list">
						<code><a href="class-ManaPHP.Mvc.Model.Exception.html">ManaPHP\Mvc\Model\Exception</a></code>
					</div>



			</div>
			</div></td>
		</tr>
		<tr data-order="count" id="_count">

			<td class="attributes"><code>
				 public static
				integer|array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_count">#</a>
			<code><a href="source-class-ManaPHP.Mvc.Model.html#531-561" title="Go to source code">count</a>( <span>string|array <var>$parameters</var> = <span class="php-keyword1">null</span></span>, <span>string <var>$column</var> = <span class="php-quote">'*'</span></span>, <span>integer|array <var>$cacheOptions</var> = <span class="php-keyword1">null</span></span> )</code>

			<div class="description short">
				<p>Allows to count how many records match the specified conditions</p>
			</div>

			<div class="description detailed hidden">
				<p>Allows to count how many records match the specified conditions</p>

<pre><span class="php-comment">//How many robots are there?</span>
<span class="php-var">$number</span> = Robots::<span class="php-keyword2">count</span>();
<span class="php-keyword1">echo</span> <span class="php-quote">&quot;There are &quot;</span>, <span class="php-var">$number</span>, <span class="php-quote">&quot;\n&quot;</span>;

<span class="php-comment">//How many mechanical robots are there?</span>
<span class="php-var">$number</span> = Robots::<span class="php-keyword2">count</span>(<span class="php-quote">&quot;type='mechanical'&quot;</span>);
<span class="php-keyword1">echo</span> <span class="php-quote">&quot;There are &quot;</span>, <span class="php-var">$number</span>, <span class="php-quote">&quot; mechanical robots\n&quot;</span>;</pre>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$parameters</var></dt>
						<dd></dd>
						<dt><var>$column</var></dt>
						<dd></dd>
						<dt><var>$cacheOptions</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						integer|array
					</div>

					<h4>Throws</h4>
					<div class="list">
						<code><a href="class-ManaPHP.Mvc.Model.Exception.html">ManaPHP\Mvc\Model\Exception</a></code>
					</div>



					<h4>Implementation of</h4>
					<div class="list"><code><a href="class-ManaPHP.Mvc.ModelInterface.html#_count">ManaPHP\Mvc\ModelInterface::count()</a></code></div>
			</div>
			</div></td>
		</tr>
		<tr data-order="sum" id="_sum">

			<td class="attributes"><code>
				 public static
				mixed
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_sum">#</a>
			<code><a href="source-class-ManaPHP.Mvc.Model.html#563-588" title="Go to source code">sum</a>( <span>string <var>$column</var></span>, <span>string|array <var>$parameters</var> = <span class="php-keyword1">null</span></span>, <span>integer|array <var>$cacheOptions</var> = <span class="php-keyword1">null</span></span> )</code>

			<div class="description short">
				<p>Allows to calculate a summary on a column that match the specified conditions</p>
			</div>

			<div class="description detailed hidden">
				<p>Allows to calculate a summary on a column that match the specified conditions</p>

<pre><span class="php-comment">//How much are all robots?</span>
<span class="php-var">$sum</span> = Robots::sum(<span class="php-keyword1">array</span>(<span class="php-quote">'column'</span> =&gt; <span class="php-quote">'price'</span>));
<span class="php-keyword1">echo</span> <span class="php-quote">&quot;The total price of robots is &quot;</span>, <span class="php-var">$sum</span>, <span class="php-quote">&quot;\n&quot;</span>;

<span class="php-comment">//How much are mechanical robots?</span>
<span class="php-var">$sum</span> = Robots::sum(<span class="php-keyword1">array</span>(<span class="php-quote">&quot;type='mechanical'&quot;</span>, <span class="php-quote">'column'</span> =&gt; <span class="php-quote">'price'</span>));
<span class="php-keyword1">echo</span> <span class="php-quote">&quot;The total price of mechanical robots is  &quot;</span>, <span class="php-var">$sum</span>, <span class="php-quote">&quot;\n&quot;</span>;</pre>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$column</var></dt>
						<dd></dd>
						<dt><var>$parameters</var></dt>
						<dd></dd>
						<dt><var>$cacheOptions</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						mixed
					</div>

					<h4>Throws</h4>
					<div class="list">
						<code><a href="class-ManaPHP.Mvc.Model.Exception.html">ManaPHP\Mvc\Model\Exception</a></code>
					</div>



					<h4>Implementation of</h4>
					<div class="list"><code><a href="class-ManaPHP.Mvc.ModelInterface.html#_sum">ManaPHP\Mvc\ModelInterface::sum()</a></code></div>
			</div>
			</div></td>
		</tr>
		<tr data-order="max" id="_max">

			<td class="attributes"><code>
				 public static
				mixed
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_max">#</a>
			<code><a href="source-class-ManaPHP.Mvc.Model.html#590-615" title="Go to source code">max</a>( <span>string <var>$column</var></span>, <span>string|array <var>$parameters</var> = <span class="php-keyword1">null</span></span>, <span>integer|array <var>$cacheOptions</var> = <span class="php-keyword1">null</span></span> )</code>

			<div class="description short">
				<p>Allows to get the max value of a column that match the specified conditions</p>
			</div>

			<div class="description detailed hidden">
				<p>Allows to get the max value of a column that match the specified conditions</p>

<pre><span class="php-comment">//What is the max robot id?</span>
<span class="php-var">$id</span> = Robots::<span class="php-keyword2">max</span>(<span class="php-keyword1">array</span>(<span class="php-quote">'column'</span> =&gt; <span class="php-quote">'id'</span>));
<span class="php-keyword1">echo</span> <span class="php-quote">&quot;The max robot id is: &quot;</span>, <span class="php-var">$id</span>, <span class="php-quote">&quot;\n&quot;</span>;

<span class="php-comment">//What is the max id of mechanical robots?</span>
<span class="php-var">$sum</span> = Robots::<span class="php-keyword2">max</span>(<span class="php-keyword1">array</span>(<span class="php-quote">&quot;type='mechanical'&quot;</span>, <span class="php-quote">'column'</span> =&gt; <span class="php-quote">'id'</span>));
<span class="php-keyword1">echo</span> <span class="php-quote">&quot;The max robot id of mechanical robots is &quot;</span>, <span class="php-var">$id</span>, <span class="php-quote">&quot;\n&quot;</span>;</pre>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$column</var></dt>
						<dd></dd>
						<dt><var>$parameters</var></dt>
						<dd></dd>
						<dt><var>$cacheOptions</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						mixed
					</div>

					<h4>Throws</h4>
					<div class="list">
						<code><a href="class-ManaPHP.Mvc.Model.Exception.html">ManaPHP\Mvc\Model\Exception</a></code>
					</div>



					<h4>Implementation of</h4>
					<div class="list"><code><a href="class-ManaPHP.Mvc.ModelInterface.html#_max">ManaPHP\Mvc\ModelInterface::max()</a></code></div>
			</div>
			</div></td>
		</tr>
		<tr data-order="min" id="_min">

			<td class="attributes"><code>
				 public static
				mixed
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_min">#</a>
			<code><a href="source-class-ManaPHP.Mvc.Model.html#617-642" title="Go to source code">min</a>( <span>string <var>$column</var></span>, <span>string|array <var>$parameters</var> = <span class="php-keyword1">null</span></span>, <span>integer|array <var>$cacheOptions</var> = <span class="php-keyword1">null</span></span> )</code>

			<div class="description short">
				<p>Allows to get the min value of a column that match the specified conditions</p>
			</div>

			<div class="description detailed hidden">
				<p>Allows to get the min value of a column that match the specified conditions</p>

<pre><span class="php-comment">//What is the min robot id?</span>
<span class="php-var">$id</span> = Robots::<span class="php-keyword2">min</span>(<span class="php-keyword1">array</span>(<span class="php-quote">'column'</span> =&gt; <span class="php-quote">'id'</span>));
<span class="php-keyword1">echo</span> <span class="php-quote">&quot;The min robot id is: &quot;</span>, <span class="php-var">$id</span>;

<span class="php-comment">//What is the min id of mechanical robots?</span>
<span class="php-var">$sum</span> = Robots::<span class="php-keyword2">min</span>(<span class="php-keyword1">array</span>(<span class="php-quote">&quot;type='mechanical'&quot;</span>, <span class="php-quote">'column'</span> =&gt; <span class="php-quote">'id'</span>));
<span class="php-keyword1">echo</span> <span class="php-quote">&quot;The min robot id of mechanical robots is &quot;</span>, <span class="php-var">$id</span>;</pre>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$column</var></dt>
						<dd></dd>
						<dt><var>$parameters</var></dt>
						<dd></dd>
						<dt><var>$cacheOptions</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						mixed
					</div>

					<h4>Throws</h4>
					<div class="list">
						<code><a href="class-ManaPHP.Mvc.Model.Exception.html">ManaPHP\Mvc\Model\Exception</a></code>
					</div>



					<h4>Implementation of</h4>
					<div class="list"><code><a href="class-ManaPHP.Mvc.ModelInterface.html#_min">ManaPHP\Mvc\ModelInterface::min()</a></code></div>
			</div>
			</div></td>
		</tr>
		<tr data-order="average" id="_average">

			<td class="attributes"><code>
				 public static
				float
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_average">#</a>
			<code><a href="source-class-ManaPHP.Mvc.Model.html#644-669" title="Go to source code">average</a>( <span>string <var>$column</var></span>, <span>string|array <var>$parameters</var> = <span class="php-keyword1">null</span></span>, <span>integer|array <var>$cacheOptions</var> = <span class="php-keyword1">null</span></span> )</code>

			<div class="description short">
				<p>Allows to calculate the average value on a column matching the specified conditions</p>
			</div>

			<div class="description detailed hidden">
				<p>Allows to calculate the average value on a column matching the specified conditions</p>

<pre><span class="php-comment">//What's the average price of robots?</span>
<span class="php-var">$average</span> = Robots::average(<span class="php-keyword1">array</span>(<span class="php-quote">'column'</span> =&gt; <span class="php-quote">'price'</span>));
<span class="php-keyword1">echo</span> <span class="php-quote">&quot;The average price is &quot;</span>, <span class="php-var">$average</span>, <span class="php-quote">&quot;\n&quot;</span>;

<span class="php-comment">//What's the average price of mechanical robots?</span>
<span class="php-var">$average</span> = Robots::average(<span class="php-keyword1">array</span>(<span class="php-quote">&quot;type='mechanical'&quot;</span>, <span class="php-quote">'column'</span> =&gt; <span class="php-quote">'price'</span>));
<span class="php-keyword1">echo</span> <span class="php-quote">&quot;The average price of mechanical robots is &quot;</span>, <span class="php-var">$average</span>, <span class="php-quote">&quot;\n&quot;</span>;</pre>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$column</var></dt>
						<dd></dd>
						<dt><var>$parameters</var></dt>
						<dd></dd>
						<dt><var>$cacheOptions</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						float
					</div>

					<h4>Throws</h4>
					<div class="list">
						<code><a href="class-ManaPHP.Mvc.Model.Exception.html">ManaPHP\Mvc\Model\Exception</a></code>
					</div>



					<h4>Implementation of</h4>
					<div class="list"><code><a href="class-ManaPHP.Mvc.ModelInterface.html#_average">ManaPHP\Mvc\ModelInterface::average()</a></code></div>
			</div>
			</div></td>
		</tr>
		<tr data-order="_fireEvent" id="__fireEvent">

			<td class="attributes"><code>
				 protected 
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#__fireEvent">#</a>
			<code><a href="source-class-ManaPHP.Mvc.Model.html#671-685" title="Go to source code">_fireEvent</a>( <span>string <var>$eventName</var></span> )</code>

			<div class="description short">
				<p>Fires an event, implicitly calls behaviors and listeners in the events manager are notified</p>
			</div>

			<div class="description detailed hidden">
				<p>Fires an event, implicitly calls behaviors and listeners in the events manager are notified</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$eventName</var></dt>
						<dd></dd>
					</dl></div>





			</div>
			</div></td>
		</tr>
		<tr data-order="_fireEventCancel" id="__fireEventCancel">

			<td class="attributes"><code>
				 protected 
				boolean
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#__fireEventCancel">#</a>
			<code><a href="source-class-ManaPHP.Mvc.Model.html#687-701" title="Go to source code">_fireEventCancel</a>( <span>string <var>$eventName</var></span> )</code>

			<div class="description short">
				<p>Fires an internal event that cancels the operation</p>
			</div>

			<div class="description detailed hidden">
				<p>Fires an internal event that cancels the operation</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$eventName</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						boolean
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="_doLowInsert" id="__doLowInsert">

			<td class="attributes"><code>
				 protected 
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#__doLowInsert">#</a>
			<code><a href="source-class-ManaPHP.Mvc.Model.html#703-731" title="Go to source code">_doLowInsert</a>( )</code>

			<div class="description short">
				<p>Sends a pre-build INSERT SQL statement to the relational database system</p>
			</div>

			<div class="description detailed hidden">
				<p>Sends a pre-build INSERT SQL statement to the relational database system</p>




					<h4>Throws</h4>
					<div class="list">
						<code><a href="class-ManaPHP.Mvc.Model.Exception.html">ManaPHP\Mvc\Model\Exception</a></code>
					</div>



			</div>
			</div></td>
		</tr>
		<tr data-order="_doLowUpdate" id="__doLowUpdate">

			<td class="attributes"><code>
				 protected 
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#__doLowUpdate">#</a>
			<code><a href="source-class-ManaPHP.Mvc.Model.html#733-767" title="Go to source code">_doLowUpdate</a>( )</code>

			<div class="description short">
				<p>Sends a pre-build UPDATE SQL statement to the relational database system</p>
			</div>

			<div class="description detailed hidden">
				<p>Sends a pre-build UPDATE SQL statement to the relational database system</p>




					<h4>Throws</h4>
					<div class="list">
						<code><a href="class-ManaPHP.Mvc.Model.Exception.html">ManaPHP\Mvc\Model\Exception</a></code>
					</div>



			</div>
			</div></td>
		</tr>
		<tr data-order="save" id="_save">

			<td class="attributes"><code>
				 public 
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_save">#</a>
			<code><a href="source-class-ManaPHP.Mvc.Model.html#769-799" title="Go to source code">save</a>( <span>array <var>$data</var> = <span class="php-keyword1">null</span></span>, <span>array <var>$whiteList</var> = <span class="php-keyword1">null</span></span> )</code>

			<div class="description short">
				<p>Inserts or updates a model instance. Returning true on success or false otherwise.</p>
			</div>

			<div class="description detailed hidden">
				<p>Inserts or updates a model instance. Returning true on success or false otherwise.</p>

<pre><span class="php-comment">//Creating a new robot</span>
   <span class="php-var">$robot</span> = <span class="php-keyword1">new</span> Robots();
   <span class="php-var">$robot</span>-&gt;type = <span class="php-quote">'mechanical'</span>;
   <span class="php-var">$robot</span>-&gt;name = <span class="php-quote">'Boy'</span>;
   <span class="php-var">$robot</span>-&gt;year = <span class="php-num">1952</span>;
   <span class="php-var">$robot</span>-&gt;save();

   <span class="php-comment">//Updating a robot name</span>
   <span class="php-var">$robot</span> = Robots::findFirst(<span class="php-quote">&quot;id=100&quot;</span>);
   <span class="php-var">$robot</span>-&gt;name = <span class="php-quote">&quot;Biomass&quot;</span>;
   <span class="php-var">$robot</span>-&gt;save();</pre>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$data</var></dt>
						<dd></dd>
						<dt><var>$whiteList</var></dt>
						<dd></dd>
					</dl></div>


					<h4>Throws</h4>
					<div class="list">
						<code><a href="class-ManaPHP.Mvc.Model.Exception.html">ManaPHP\Mvc\Model\Exception</a></code>
					</div>



					<h4>Implementation of</h4>
					<div class="list"><code><a href="class-ManaPHP.Mvc.ModelInterface.html#_save">ManaPHP\Mvc\ModelInterface::save()</a></code></div>
			</div>
			</div></td>
		</tr>
		<tr data-order="create" id="_create">

			<td class="attributes"><code>
				 public 
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_create">#</a>
			<code><a href="source-class-ManaPHP.Mvc.Model.html#801-841" title="Go to source code">create</a>( <span>array <var>$data</var> = <span class="php-keyword1">null</span></span>, <span>array <var>$whiteList</var> = <span class="php-keyword1">null</span></span> )</code>

			<div class="description short">
				<p>Inserts a model instance. If the instance already exists in the persistence it will throw an exception
Returning true on success or false otherwise.</p>
			</div>

			<div class="description detailed hidden">
				<p>Inserts a model instance. If the instance already exists in the persistence it will throw an exception
Returning true on success or false otherwise.</p>

<pre><span class="php-comment">//Creating a new robot</span>
   <span class="php-var">$robot</span> = <span class="php-keyword1">new</span> Robots();
   <span class="php-var">$robot</span>-&gt;type = <span class="php-quote">'mechanical'</span>;
   <span class="php-var">$robot</span>-&gt;name = <span class="php-quote">'Boy'</span>;
   <span class="php-var">$robot</span>-&gt;year = <span class="php-num">1952</span>;
   <span class="php-var">$robot</span>-&gt;create();

 <span class="php-comment">//Passing an array to create</span>
 <span class="php-var">$robot</span> = <span class="php-keyword1">new</span> Robots();
 <span class="php-var">$robot</span>-&gt;create(<span class="php-keyword1">array</span>(
     <span class="php-quote">'type'</span> =&gt; <span class="php-quote">'mechanical'</span>,
     <span class="php-quote">'name'</span> =&gt; <span class="php-quote">'Boy'</span>,
     <span class="php-quote">'year'</span> =&gt; <span class="php-num">1952</span>
 ));</pre>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$data</var></dt>
						<dd></dd>
						<dt><var>$whiteList</var></dt>
						<dd></dd>
					</dl></div>


					<h4>Throws</h4>
					<div class="list">
						<code><a href="class-ManaPHP.Mvc.Model.Exception.html">ManaPHP\Mvc\Model\Exception</a></code>
					</div>



					<h4>Implementation of</h4>
					<div class="list"><code><a href="class-ManaPHP.Mvc.ModelInterface.html#_create">ManaPHP\Mvc\ModelInterface::create()</a></code></div>
			</div>
			</div></td>
		</tr>
		<tr data-order="update" id="_update">

			<td class="attributes"><code>
				 public 
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_update">#</a>
			<code><a href="source-class-ManaPHP.Mvc.Model.html#843-874" title="Go to source code">update</a>( <span>array <var>$data</var> = <span class="php-keyword1">null</span></span>, <span>array <var>$whiteList</var> = <span class="php-keyword1">null</span></span> )</code>

			<div class="description short">
				<p>Updates a model instance. If the instance does n't exist in the persistence it will throw an exception
Returning true on success or false otherwise.</p>
			</div>

			<div class="description detailed hidden">
				<p>Updates a model instance. If the instance does n't exist in the persistence it will throw an exception
Returning true on success or false otherwise.</p>

<pre><span class="php-comment">//Updating a robot name</span>
   <span class="php-var">$robot</span> = Robots::findFirst(<span class="php-quote">&quot;id=100&quot;</span>);
   <span class="php-var">$robot</span>-&gt;name = <span class="php-quote">&quot;Biomass&quot;</span>;
   <span class="php-var">$robot</span>-&gt;update();</pre>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$data</var></dt>
						<dd></dd>
						<dt><var>$whiteList</var></dt>
						<dd></dd>
					</dl></div>


					<h4>Throws</h4>
					<div class="list">
						<code><a href="class-ManaPHP.Mvc.Model.Exception.html">ManaPHP\Mvc\Model\Exception</a></code>
					</div>



					<h4>Implementation of</h4>
					<div class="list"><code><a href="class-ManaPHP.Mvc.ModelInterface.html#_update">ManaPHP\Mvc\ModelInterface::update()</a></code></div>
			</div>
			</div></td>
		</tr>
		<tr data-order="updateAll" id="_updateAll">

			<td class="attributes"><code>
				 public static
				integer
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_updateAll">#</a>
			<code><a href="source-class-ManaPHP.Mvc.Model.html#876-892" title="Go to source code">updateAll</a>( <span>array <var>$columnValues</var></span>, <span>string|array <var>$conditions</var></span>, <span>array <var>$bind</var> = []</span> )</code>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$columnValues</var></dt>
						<dd></dd>
						<dt><var>$conditions</var></dt>
						<dd></dd>
						<dt><var>$bind</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						integer
					</div>

					<h4>Throws</h4>
					<div class="list">
						<code><a href="class-ManaPHP.Mvc.Model.Exception.html">ManaPHP\Mvc\Model\Exception</a></code>
					</div>



					<h4>Implementation of</h4>
					<div class="list"><code><a href="class-ManaPHP.Mvc.ModelInterface.html#_updateAll">ManaPHP\Mvc\ModelInterface::updateAll()</a></code></div>
			</div>
			</div></td>
		</tr>
		<tr data-order="deleteAll" id="_deleteAll">

			<td class="attributes"><code>
				 public static
				integer
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_deleteAll">#</a>
			<code><a href="source-class-ManaPHP.Mvc.Model.html#894-909" title="Go to source code">deleteAll</a>( <span>string|array <var>$conditions</var></span>, <span>array <var>$bind</var> = []</span> )</code>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$conditions</var></dt>
						<dd></dd>
						<dt><var>$bind</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						integer
					</div>

					<h4>Throws</h4>
					<div class="list">
						<code><a href="class-ManaPHP.Mvc.Model.Exception.html">ManaPHP\Mvc\Model\Exception</a></code>
					</div>



					<h4>Implementation of</h4>
					<div class="list"><code><a href="class-ManaPHP.Mvc.ModelInterface.html#_deleteAll">ManaPHP\Mvc\ModelInterface::deleteAll()</a></code></div>
			</div>
			</div></td>
		</tr>
		<tr data-order="delete" id="_delete">

			<td class="attributes"><code>
				 public 
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_delete">#</a>
			<code><a href="source-class-ManaPHP.Mvc.Model.html#911-951" title="Go to source code">delete</a>( )</code>

			<div class="description short">
				<p>Deletes a model instance. Returning true on success or false otherwise.</p>
			</div>

			<div class="description detailed hidden">
				<p>Deletes a model instance. Returning true on success or false otherwise.</p>

<pre><span class="php-var">$robot</span> = Robots::findFirst(<span class="php-quote">&quot;id=100&quot;</span>);
<span class="php-var">$robot</span>-&gt;<span class="php-keyword2">delete</span>();

<span class="php-keyword1">foreach</span> (Robots::find(<span class="php-quote">&quot;type = 'mechanical'&quot;</span>) <span class="php-keyword1">as</span> <span class="php-var">$robot</span>) {
  <span class="php-var">$robot</span>-&gt;<span class="php-keyword2">delete</span>();
}</pre>




					<h4>Throws</h4>
					<div class="list">
						<code><a href="class-ManaPHP.Mvc.Model.Exception.html">ManaPHP\Mvc\Model\Exception</a></code>
					</div>



					<h4>Implementation of</h4>
					<div class="list"><code><a href="class-ManaPHP.Mvc.ModelInterface.html#_delete">ManaPHP\Mvc\ModelInterface::delete()</a></code></div>
			</div>
			</div></td>
		</tr>
		<tr data-order="toArray" id="_toArray">

			<td class="attributes"><code>
				 public 
				array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_toArray">#</a>
			<code><a href="source-class-ManaPHP.Mvc.Model.html#953-972" title="Go to source code">toArray</a>( )</code>

			<div class="description short">
				<p>Returns the instance as an array representation</p>
			</div>

			<div class="description detailed hidden">
				<p>Returns the instance as an array representation</p>

<pre><span class="php-keyword2">print_r</span>(<span class="php-var">$robot</span>-&gt;toArray());</pre>



					<h4>Returns</h4>
					<div class="list">
						array
					</div>

					<h4>Throws</h4>
					<div class="list">
						<code><a href="class-ManaPHP.Mvc.Model.Exception.html">ManaPHP\Mvc\Model\Exception</a></code>
					</div>



					<h4>Implementation of</h4>
					<div class="list"><code><a href="class-ManaPHP.Mvc.ModelInterface.html#_toArray">ManaPHP\Mvc\ModelInterface::toArray()</a></code></div>
			</div>
			</div></td>
		</tr>
		<tr data-order="getSnapshotData" id="_getSnapshotData">

			<td class="attributes"><code>
				 public 
				array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getSnapshotData">#</a>
			<code><a href="source-class-ManaPHP.Mvc.Model.html#974-982" title="Go to source code">getSnapshotData</a>( )</code>

			<div class="description short">
				<p>Returns the internal snapshot data</p>
			</div>

			<div class="description detailed hidden">
				<p>Returns the internal snapshot data</p>



					<h4>Returns</h4>
					<div class="list">
						array
					</div>




					<h4>Implementation of</h4>
					<div class="list"><code><a href="class-ManaPHP.Mvc.ModelInterface.html#_getSnapshotData">ManaPHP\Mvc\ModelInterface::getSnapshotData()</a></code></div>
			</div>
			</div></td>
		</tr>
		<tr data-order="getChangedFields" id="_getChangedFields">

			<td class="attributes"><code>
				 public 
				array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getChangedFields">#</a>
			<code><a href="source-class-ManaPHP.Mvc.Model.html#984-1001" title="Go to source code">getChangedFields</a>( )</code>

			<div class="description short">
				<p>Returns a list of changed values</p>
			</div>

			<div class="description detailed hidden">
				<p>Returns a list of changed values</p>



					<h4>Returns</h4>
					<div class="list">
						array
					</div>

					<h4>Throws</h4>
					<div class="list">
						<code><a href="class-ManaPHP.Mvc.Model.Exception.html">ManaPHP\Mvc\Model\Exception</a></code>
					</div>



					<h4>Implementation of</h4>
					<div class="list"><code><a href="class-ManaPHP.Mvc.ModelInterface.html#_getChangedFields">ManaPHP\Mvc\ModelInterface::getChangedFields()</a></code></div>
			</div>
			</div></td>
		</tr>
		<tr data-order="hasChanged" id="_hasChanged">

			<td class="attributes"><code>
				 public 
				boolean
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_hasChanged">#</a>
			<code><a href="source-class-ManaPHP.Mvc.Model.html#1003-1026" title="Go to source code">hasChanged</a>( <span>string|array <var>$fields</var></span> )</code>

			<div class="description short">
				<p>Check if a specific attribute has changed
This only works if the model is keeping data snapshots</p>
			</div>

			<div class="description detailed hidden">
				<p>Check if a specific attribute has changed
This only works if the model is keeping data snapshots</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$fields</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						boolean
					</div>

					<h4>Throws</h4>
					<div class="list">
						<code><a href="class-ManaPHP.Mvc.Model.Exception.html">ManaPHP\Mvc\Model\Exception</a></code>
					</div>



					<h4>Implementation of</h4>
					<div class="list"><code><a href="class-ManaPHP.Mvc.ModelInterface.html#_hasChanged">ManaPHP\Mvc\ModelInterface::hasChanged()</a></code></div>
			</div>
			</div></td>
		</tr>
		<tr data-order="__callStatic" id="___callStatic">

			<td class="attributes"><code>
				 public static
				array|false|integer|<code><a href="class-ManaPHP.Mvc.Model.html">ManaPHP\Mvc\Model</a></code>|static[]
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#___callStatic">#</a>
			<code><a href="source-class-ManaPHP.Mvc.Model.html#1028-1063" title="Go to source code">__callStatic</a>( <span>string <var>$method</var></span>, <span>integer|string <var>$arguments</var></span> )</code>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$method</var></dt>
						<dd></dd>
						<dt><var>$arguments</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						array|false|integer|<code><a href="class-ManaPHP.Mvc.Model.html">ManaPHP\Mvc\Model</a></code>|static[]
					</div>

					<h4>Throws</h4>
					<div class="list">
						<code><a href="class-ManaPHP.Mvc.Model.Exception.html">ManaPHP\Mvc\Model\Exception</a></code>
					</div>



			</div>
			</div></td>
		</tr>
			</table>
		</div>

		<div class="panel panel-default">
	        <div class="panel-heading"><h3>Methods inherited from <a href="class-ManaPHP.Component.html#methods">ManaPHP\Component</a></h3></div>
			<p class="elementList">
				<code><a href="class-ManaPHP.Component.html#___debugInfo">__debugInfo()</a></code>, 
				<code><a href="class-ManaPHP.Component.html#___get">__get()</a></code>, 
				<code><a href="class-ManaPHP.Component.html#___isset">__isset()</a></code>, 
				<code><a href="class-ManaPHP.Component.html#___set">__set()</a></code>, 
				<code><a href="class-ManaPHP.Component.html#_attachEvent">attachEvent()</a></code>, 
				<code><a href="class-ManaPHP.Component.html#_dump">dump()</a></code>, 
				<code><a href="class-ManaPHP.Component.html#_fireEvent">fireEvent()</a></code>, 
				<code><a href="class-ManaPHP.Component.html#_getDependencyInjector">getDependencyInjector()</a></code>, 
				<code><a href="class-ManaPHP.Component.html#_setDependencyInjector">setDependencyInjector()</a></code>
			</p>
		</div>


		<div class="panel panel-default">
	        <div class="panel-heading"><h3>Magic methods summary</h3></div>
			<table class="summary table table-bordered table-striped methods" id="magicMethods">
		<tr data-order="initialize" id="m_initialize">

			<td class="attributes"><code>
				 public 
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#m_initialize">#</a>
			<code><a href="source-class-ManaPHP.Mvc.Model.html#16" title="Go to source code">initialize</a>( )</code>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				







			</div>
			</div></td>
		</tr>
		<tr data-order="onConstruct" id="m_onConstruct">

			<td class="attributes"><code>
				 public 
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#m_onConstruct">#</a>
			<code><a href="source-class-ManaPHP.Mvc.Model.html#17-31" title="Go to source code">onConstruct</a>( )</code>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				







			</div>
			</div></td>
		</tr>
			</table>
		</div>








		<div class="panel panel-default">
            <div class="panel-heading"><h2>Properties summary</h2></div>
			<table class="summary table table-bordered table-striped properties" id="properties">
		<tr data-order="_snapshot" id="$_snapshot">
			<td class="attributes"><code>
				protected  
				array
			</code></td>

			<td class="name">
					<a href="source-class-ManaPHP.Mvc.Model.html#38-41" title="Go to source code"><var>$_snapshot</var></a>

				<div class="description short">
					
				</div>

				<div class="description detailed hidden">
					

				</div>
			</td>
			<td class="value">
				<div>
					<a href="#$_snapshot" class="anchor">#</a>
					<code>[]</code>
				</div>
			</td>
		</tr>
		<tr data-order="_initialized" id="$_initialized">
			<td class="attributes"><code>
				protected static 
				array
			</code></td>

			<td class="name">
					<a href="source-class-ManaPHP.Mvc.Model.html#43-46" title="Go to source code"><var>$_initialized</var></a>

				<div class="description short">
					
				</div>

				<div class="description detailed hidden">
					

				</div>
			</td>
			<td class="value">
				<div>
					<a href="#$_initialized" class="anchor">#</a>
					<code>[]</code>
				</div>
			</td>
		</tr>
			</table>
		</div>

		<div class="panel panel-default">
            <div class="panel-heading"><h3>Properties inherited from <a href="class-ManaPHP.Component.html#properties">ManaPHP\Component</a></h3></div>
			<p class="elementList">
				<code><a href="class-ManaPHP.Component.html#$_dependencyInjector"><var>$_dependencyInjector</var></a></code>
			</p>
		</div>


		<div class="panel panel-default">
            <div class="panel-heading"><h3>Magic properties</h3></div>
			<table class="summary table table-bordered table-striped properties" id="magicProperties">
		<tr data-order="modelsMetadata" id="m$modelsMetadata">
			<td class="attributes"><code>
				public  
				<code><a href="class-ManaPHP.Mvc.Model.MetadataInterface.html">ManaPHP\Mvc\Model\MetadataInterface</a></code>
			</code></td>

			<td class="name">
					<a href="source-class-ManaPHP.Mvc.Model.html#33" title="Go to source code"><var>$modelsMetadata</var></a>

				<div class="description short">
					
				</div>

				<div class="description detailed hidden">
					

				</div>
			</td>
		</tr>
		<tr data-order="modelsManager" id="m$modelsManager">
			<td class="attributes"><code>
				public  
				<code><a href="class-ManaPHP.Mvc.Model.ManagerInterface.html">ManaPHP\Mvc\Model\ManagerInterface</a></code>
			</code></td>

			<td class="name">
					<a href="source-class-ManaPHP.Mvc.Model.html#34" title="Go to source code"><var>$modelsManager</var></a>

				<div class="description short">
					
				</div>

				<div class="description detailed hidden">
					

				</div>
			</td>
		</tr>
			</table>
		</div>

		<div class="panel panel-default">
            <div class="panel-heading"><h3>Magic properties inherited from <a href="class-ManaPHP.Component.html#properties">ManaPHP\Component</a></h3></div>
			<p class="elementList">
				<code><a href="class-ManaPHP.Component.html#m$alias"><var>$alias</var></a></code>, 
				<code><a href="class-ManaPHP.Component.html#m$configure"><var>$configure</var></a></code>, 
				<code><a href="class-ManaPHP.Component.html#m$eventsManager"><var>$eventsManager</var></a></code>, 
				<code><a href="class-ManaPHP.Component.html#m$filesystem"><var>$filesystem</var></a></code>, 
				<code><a href="class-ManaPHP.Component.html#m$logger"><var>$logger</var></a></code>
			</p>
		</div>


</div>
	</div>

	<div id="footer">
		 API documentation generated by <a href="http://apigen.org">ApiGen</a>
	</div>
</div>
<script src="resources/combined.js"></script>
<script src="elementlist.js"></script>
</body>
</html>
